#FROM node:14.17.6

#WORKDIR /app
##把.nuxt目录下的所有内容复制到/app/.nuxt/
#COPY .  /app/

##安装核心依赖  npm cache clean -f
#RUN ["npm","install","--registry=https://registry.npm.taobao.org"]
#RUN ["npm","run","build"]
#EXPOSE 3000
#CMD ["npm", "run", "start"]
FROM nginx

RUN mkdir -p /home/yygh-site
# 指定路径
WORKDIR /home/yygh-site
# 复制conf文件到路径
COPY nginx.conf /etc/nginx/nginx.conf
# 复制html文件到路径
COPY dist /home/yygh-site
#将dist目录内容复制到nginx容器html内部
#COPY dist /usr/share/nginx/html/

EXPOSE 80